﻿namespace RedDockNet_BackEnd.Service
{
    public interface IMongoDBService<T>
    {
        /// <summary>
        /// 查询数据
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        T Select(string id);
        /// <summary>
        /// 插入数据
        /// </summary>
        /// <param name="t"></param>
        void Insert(T t);
        /// <summary>
        /// 更新数据
        /// </summary>
        /// <param name="t"></param>
        void Update(T t);
        /// <summary>
        /// 删除数据
        /// </summary>
        /// <param name="t"></param>
        void Delete(T t);
    }
}